public class Problem5 {
	public static void main(String[] args) {
		int N = 20;
		int[] arr = new int[N+1];
		for (int i = 2 ; i <= N; i ++ ) {
			int m = i;

			for(int j = 2 ; j <= i ; j ++ ) {
				int cnt = 0;
				while(m % j == 0) {
					m /= j;
					cnt++;
				}
				if(arr[j] < cnt) {
					arr[j] = cnt;
				}
				if(m == 1) {
					break;
				}
			}
		
		}

		int sum = 1;
		for (int i = 2 ; i <= N ; i ++ ) {
			while (arr[i] > 0) {
				sum *= i;
				arr[i]--;
			}
		}

		System.out.println(""+sum);
	}
}
